#include <iostream>
#include <string>
class data {
public:
	void* p = nullptr;
	class data()
	{
		void* p = nullptr;		
		std::cout << "bool大小为：" << sizeof(bool) << std::endl;
		std::cout << "char大小为：" << sizeof(char) << std::endl;
		std::cout << "short大小为：" << sizeof(short) << std::endl;
		std::cout << "unsigned short大小为：" << sizeof(unsigned short) << std::endl;
		std::cout << "float大小为：" << sizeof(float) << std::endl;
		std::cout << "*大小为：" << sizeof(p) << std::endl;
		std::cout << "int大小为：" << sizeof(int) << std::endl;
		std::cout << "long大小为：" << sizeof(long) << std::endl;
		std::cout << "unsigned long大小为：" << sizeof(unsigned long) << std::endl;
		std::cout << "long long int大小为：" << sizeof(long long int) << std::endl;
		std::cout << "double大小为：" << sizeof(double) << std::endl;
		std::cout << "str大小为：" << sizeof(std::string) << std::endl;

	}
};
int main()
{
	data type;
}